package com.fingard.dsp.web.page.d;

import java.util.Map;

import com.fingard.FGBiz;
import com.fingard.dsp.web.page.PageBase;
import com.fingard.net.listener.HttpThread;
import com.fingard.text.JsonHelper;

public class ListRuntime extends PageBase {

	@Override
    public void pageLoad() throws Exception {
		httpContext.response.isRtnBytes = false;
		httpContext.response.setContentType("txt", "");
		
		String listType = httpContext.request.getQryStrValue("listType");
		if("httpconcurrent".equalsIgnoreCase(listType)){
			Map<String,String> map1 = HttpThread.getConcurrentNum();
			httpContext.response.respMsg = JsonHelper.mapToDataListJson(map1);
		}else{
			httpContext.response.respMsg = FGBiz.dspCenter.getRuntimeJsonList();
		}
	}
}
